

		<!-- <div class="nav white">
							<div class="logo"><img src="../images/logo.png" /></div>
							<div class="logoBig">
								<li><img src="../images/logobig.png" /></li>
							</div>
		
							<div class="search-bar pr">
								<a name="index_none_header_sysc" href="#"></a>
								<form>
									<input id="searchInput" name="index_none_header_sysc" type="text" placeholder="搜索" autocomplete="off">
									<input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="submit">
								</form>
							</div>
					</div>
		<div class="clear"></div>		 -->
		  <link rel="stylesheet" href="layui/css/modules/layer/default/layer.css" />
		   <script src="../js/vue.js" ></script>
		   	<script type="text/javascript" src="layui/lay/modules/layer.js"></script>
			
		<div class="am-container header">
					<ul class="message-l">
						<div class="topMessage">
							<div class="menu-hd">
								<a href="#" target="_top" class="h">亲，请登录</a>
								<a href="#" target="_top">免费注册</a>
							</div>
						</div>
					</ul>
					<ul class="message-r">
						<div class="topMessage home">
							<div class="menu-hd"><a href="#" target="_top" class="h">商城首页</a></div>
						</div>
						<div class="topMessage my-shangcheng">
							<div class="menu-hd MyShangcheng"><a href="#" target="_top"><i class="am-icon-user am-icon-fw"></i>个人中心</a></div>
						</div>
						<div class="topMessage mini-cart">
							<div class="menu-hd"><a id="mc-menu-hd" href="#" target="_top"><i class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span><strong
									 id="J_MiniCartNum" class="h">0</strong></a></div>
						</div>
						<div class="topMessage favorite">
							<div class="menu-hd"><a href="#" target="_top"><i class="am-icon-heart am-icon-fw"></i><span id="scj">收藏夹</span></a></div>
					</ul>
				</div>
		
		    <div class="nav white">
								<div class="logo"><img src="../images/logo.png" /></div>
								<div class="logoBig">
									<li><img src="../images/logobig.png" /></li>
								</div>
			
								<div class="search-bar pr"  id="searchvn">
									<a name="index_none_header_sysc" href="#"></a>
									<form>
										<input id="searchInput" name="index_none_header_sysc" type="text" placeholder="搜索" autocomplete="off" v-model="keyword">
										<input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="button" @click="searchByKeyWord">
									</form>
								</div>
						</div>
			<div class="clear"></div>		       
		
				
			</div>
			
		<script>
        
			var headVm = new Vue({
				el:"#searchvn",
				data:{
					keyword:""
				},
				methods: {
				//根据关键字进行搜索
				searchByKeyWord: function() {
					var keyWord = this.keyword;
					if(keyWord==''){
						alert("请输入搜索信息");
						return;
					}
					axios.get(searchpath+"products?goodname="+keyWord+"").then(function(res) {
						if(res.data.code==404){
							alert("抱歉无数据")
						}else{//存到localStorage里面然后跳转到search页面
							localStorage.setItem("seargoods",res.data)
							location.href='search.html';
						}
					});
				}
			 }
		  
		})
				
		</script>